
package coffee;

/**
 *
 * @author bwolff
 */
public class CaffeineLevel {
    
    private static final double caffeinePerKg = 12.5;
    
    public static double getCaffeineLevel(int weight,int caffeine){
        double percent;
        percent = (float)caffeine/((float)weight*caffeinePerKg);
        if (percent>1)
            percent = 1;
        System.out.println(percent);
        return percent;        
    }
}
